package main

import "fmt"

var (
	firstName, lastName, s string
	i                      int
	f                      float32
	input                  = "57.2 / 5212 / Go"
	format                 = "%f / %d / %s"
)

func main() {
	fmt.Println("请输入你的全名:")
	fmt.Scanln(&firstName, &lastName)

	fmt.Printf("你好 %s %s \n", firstName, lastName)
	fmt.Sscanf(input, format, &f, &i, &s)
	fmt.Println("读取来自字符串:", f, i, s)
}
